class Level {
  Level({
    this.color,
    this.displayName,
    this.hidden,
    this.id,
    this.intermediate,
    this.levelCode,
    this.name,
    this.order,
    this.shortName,
  });

  String? color;
  String? displayName;
  bool? hidden;
  String? id;
  bool? intermediate;
  String? levelCode;
  String? name;
  int? order;
  String? shortName;

  factory Level.fromJson(Map<String, dynamic> json) => Level(
        color: json["color"],
        displayName: json["displayName"],
        hidden: json["hidden"],
        id: json["id"],
        intermediate: json["intermediate"],
        levelCode: json["levelCode"],
        name: json["name"],
        order: json["order"],
        shortName: json["shortName"],
      );

  Map<String, dynamic> toJson() => {
        "color": color,
        "displayName": displayName,
        "hidden": hidden,
        "id": id,
        "intermediate": intermediate,
        "levelCode": levelCode,
        "name": name,
        "order": order,
        "shortName": shortName,
      };
}
